//
//  RBSecondKillDetailResponse.h
//  zhongzhenglu
//
//  Created by 马军凯 on 2023/3/24.
//

#import "RBResponse.h"

NS_ASSUME_NONNULL_BEGIN

@interface RBSecondKillDetailShopInfoModel : RBResponse
@property (nonatomic, copy) NSString *logo;
@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString *content;
@property (nonatomic, copy) NSString *store_name;
@property (nonatomic, retain) NSArray *shop_goods;
@end

@interface RBSecondKillDetailModel : RBResponse
//图片数组
@property (nonatomic, retain) NSArray *picarr;
@property (nonatomic, copy) NSString *picurl;
//售价
@property (nonatomic, copy) NSString *sell_price;
//原价
@property (nonatomic, copy) NSString *shop_price;
//
@property (nonatomic, copy) NSString *total_price;
//商品名称
@property (nonatomic, copy) NSString *good_name;
//描述
@property (nonatomic, copy) NSString *cate_name;
//销量
@property (nonatomic, copy) NSString *sale_num;
//结束时间
@property (nonatomic, copy) NSString *end_time;
//店铺信息
@property (nonatomic, strong) RBSecondKillDetailShopInfoModel *shop_info;
//属性
@property (nonatomic, retain) NSArray *goods_spec;
//评价
@property (nonatomic, copy) NSString *evaluate_count;
@property (nonatomic, retain) NSArray *evaluate;
//详情
@property (nonatomic, copy) NSString *content;
//ID
@property (nonatomic, copy) NSString *id;

@end

@interface RBSecondKillDetailResponse : RBResponse
@property (nonatomic, strong) RBSecondKillDetailModel *data;
@end



@interface RBSecondKillDetailEvaluateModel : RBResponse
@property (nonatomic, copy) NSString *star_num;
@property (nonatomic, copy) NSString *content;
@property (nonatomic, copy) NSString *nickname;
@property (nonatomic, copy) NSString *create_time;
@property (nonatomic, copy) NSString *is_anonymous;
@property (nonatomic, copy) NSString *avatar;
@end







@interface RBSecondKillDetailShopGoodsModel : RBResponse
@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString *good_name;
@property (nonatomic, copy) NSString *picurl;
@end


@interface RBSecondKillDetailSepcModel : RBResponse

/**商品类型id*/
@property(nonatomic, copy)NSString *id;
/**商品类型名称*/
@property(nonatomic, copy)NSString *name;
/**1显示 0不显示*/
@property(nonatomic, assign)NSInteger status;
/**加价方式 0 固定价格 1 属性价格 2商品价格    */
@property(nonatomic, assign)NSInteger is_add_type;
/**固定价格*/
@property(nonatomic, copy)NSString *base_price;
/**是否计算属性价格0 否 1 是    */
@property(nonatomic, assign)BOOL is_price;
/**模板类型: 1单选模板[显示]; 2多选模板[弹出]; 3选择器模板[弹出];
 4单选模板[弹出][多项]; 5牙位模板[显示]; 6牙排模板[弹出]    */
@property(nonatomic, assign)NSInteger model_type;
/**外层容器（1是 0否）    */
@property(nonatomic, assign)BOOL is_box;
/** 子属性 */
@property(nonatomic, strong)NSArray *spec;


//计算属性
/** 层深: 2/3 */
@property(nonatomic, assign) NSInteger level;
/** 针对model_type == 1 */
@property(nonatomic, assign) NSInteger selIndex;

@end

@interface RBSecondKillDetailSepcItemModel : RBResponse

@property(nonatomic, copy)NSString *id;
@property(nonatomic, copy)NSString *type_id;
@property(nonatomic, copy)NSString *pid;
@property(nonatomic, copy)NSString *spec_name;
@property(nonatomic, copy)NSString *spec_price;
@property(nonatomic, assign)BOOL is_default ;

@property(nonatomic, strong)NSArray *spec_son;

#pragma mark - 计算值
@property(nonatomic, assign) BOOL selected;
@property(nonatomic, assign) NSInteger count;

@end

NS_ASSUME_NONNULL_END
